package guodaowang.apidata;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class time {
    public static void main(String[] args) throws ParseException {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd");
        Date date = simpleDateFormat.parse("2020-01-23");
        long time = date.getTime();
        Date date1 = new Date();
        long time1 = date1.getTime();
        System.out.println(time1/1000);


        System.out.println(time/1000);
    }
}
